#include "MyGraphics.h"
#include "CImg.h"

using namespace cimg_library;

class MyCImg: public MyGraphics
{
private:
	CImg<int> *myScreen;
	CImgDisplay *display;

public:
	void Display();

public:
	MyCImg();
	~MyCImg();

	// Ham ve duong thang
	void DrawLine(char RGBStroke[], int strokeWidth, int x1, int y1, int x2, int y2);

	// Ham ve Elipse
	void DrawEllipse(char RGBStroke[], int strokeWidth, int x, int y, int width, int height);

	// Ham ve hinh chu nhat
	void DrawRectangle(char RGBStroke[], int strokeWidth, int x, int y, int width, int height);

	// Ham ve Text
	void DrawText2(char RGBStroke[], char* text, int size, int x, int y);

	// Ham ve mui ten
	void DrawArrow(char RGBStroke[], int strokeWidth, int x1, int y1, int x2, int y2);

	// Ham to Elipse
	void FillEllipse(char RGBStroke[], int x, int y, int width, int height);

	// Ham to hinh chu nhat
	void FillRectangle(char RGBStroke[], int x, int y, int width, int height);

	// Ham to hinh da giac
	void FillPolygon(char RGBStroke[], MyPoint points[], int numPoints);

	// Lay ten thu vien do hoa
	string GetName();
};